package com.roy.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;
import java.util.Map;

/**
 * Created by admin on 17-12-25.
 */
@Controller
public class WelcomeController {

    @GetMapping
    public String hello(Map<String, Object> model) {
        model.put("time", new Date());
        return "hello";
    }
}
